//
//  AppDelegate+WeixinEx.h
//  MyNewProject
//
//  Created by 王春辉 on 2020/1/15.
//  Copyright © 2020年 sun. All rights reserved.
//

#import "AppDelegate.h"
#import "WXApi.h"

@interface WXShareTypeView : UIView
+ (WXShareTypeView *_Nonnull)shareResultBlock:(void(^_Nonnull __strong)(NSInteger type))block;
@end

NS_ASSUME_NONNULL_BEGIN

@interface AppDelegate (WeixinEx)<WXApiDelegate>


/**
 注册微信支付
 */
- (void)registerWechatPay;

- (BOOL)handleOpenUrl:(NSURL *)url;
- (BOOL)openUrl:(NSURL *)url;
- (BOOL)continueUserActivity:(NSUserActivity *)userActivity;

/// 充值
/// @param noncestr noncestr description
/// @param package package description
/// @param partnerid partnerid description
/// @param prepayid prepayid description
/// @param timestamp timestamp description
/// @param sign sign description
/// @param complete complete description
+ (void)payrequestWithNonceStr:(NSString *)noncestr Package:(NSString *)package Partnerid:(NSString *)partnerid Prepayid:(NSString *)prepayid Timestamp:(NSString *)timestamp Sign:(NSString *)sign Complete:(void(^_Nonnull __strong)(BOOL))complete;

/// 分享
/// @param shareNum 邀请码
/// @param ptNum 产品id
/// @param isSell 拍买 还是 购买
/// @param complete 回调
+ (void)wxShareWith:(NSString *)shareNum PtNum:(NSString *)ptNum SellOrGoodId:(BOOL)isSell Complete:(void(^_Nonnull __strong)(BOOL))complete;
/**
 微信登陆

 @param complete 回调
 */
+ (void)wxLoginComplete:(void(^_Nonnull __strong)(NSDictionary *))complete;
@end

NS_ASSUME_NONNULL_END
